package me.ZFC.Text;

import java.util.Random;
import java.util.Scanner;

public class Test15 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String str = sc.next();
        char[] c = str.toCharArray();
        Random r = new Random();
        for (int i = 0; i < c.length; i++) {
            int index = r.nextInt(c.length);
            char temp = c[i];
            c[i] = c[index];
            c[index] = temp;
        }
        String result = new String(c);
        System.out.println(result);
    }
}
